package com.ttc.ssm.po;

import com.sun.xml.internal.ws.spi.db.DatabindingException;

import java.util.Date;

/**
 * Created by Jiarui on 2016/8/17.
 */
public class InviteActivity {

    private int invite_activity_id;

    private int invite_id;

    private int type;

    private int customer_id;

    private int company_id;

    private int status;

    private int is_read;

    private Date date_added;

    private Company company;

    private Invite invite;

    private String date_added_string;

    private Customer customer;

    public void setCustomer(Customer customer) {
        this.customer = customer;
    }

    public Customer getCustomer() {

        return customer;
    }

    public void setDate_added_string(String date_added_string) {
        this.date_added_string = date_added_string;
    }

    public String getDate_added_string() {

        if(date_added!=null) {

            java.text.DateFormat format1 = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

            date_added_string = format1.format(date_added);

        }

        return date_added_string;
    }

    public void setCompany(Company company) {
        this.company = company;
    }

    public void setInvite(Invite invite) {
        this.invite = invite;
    }

    public Company getCompany() {

        return company;
    }

    public Invite getInvite() {
        return invite;
    }

    public void setInvite_activity_id(int invite_activity_id) {
        this.invite_activity_id = invite_activity_id;
    }

    public void setInvite_id(int invite_id) {
        this.invite_id = invite_id;
    }

    public void setType(int type) {
        this.type = type;
    }

    public void setCustomer_id(int customer_id) {
        this.customer_id = customer_id;
    }

    public void setCompany_id(int company_id) {
        this.company_id = company_id;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public void setIs_read(int is_read) {
        this.is_read = is_read;
    }

    public void setDate_added(Date date_added) {
        this.date_added = date_added;
    }

    public int getInvite_activity_id() {

        return invite_activity_id;
    }

    public int getInvite_id() {
        return invite_id;
    }

    public int getType() {
        return type;
    }

    public int getCustomer_id() {
        return customer_id;
    }

    public int getCompany_id() {
        return company_id;
    }

    public int getStatus() {
        return status;
    }

    public int getIs_read() {
        return is_read;
    }

    public Date getDate_added() {
        return date_added;
    }
}
